package com.piccolo.wrapper.client.component.JSNI;

import com.piccolo.wrapper.client.component.Overlay.PBoundsOverlay;
import com.piccolo.wrapper.client.component.Overlay.PImageOverlay;

public class PImageJSNI 
{
	public native PImageOverlay create(String image) 
	/*-{ return new $wnd.PImage(image); }-*/;
	
	public native PImageOverlay create(PBoundsOverlay theBounds, String image) 
	/*-{ return new $wnd.PImage({url: image, bounds: theBounds}); }-*/ ;
}
